/*
 * 描述: 封装组件库
 * 作者: Jack Chen
 * 日期: 2020-04-18
 */

import bgAnimation from './bgAnimation' // 登录界面背景图动画
import modal from './modal' // 自定义全局模态框
// import sinan from './grid/sinan' // 司南排名图
// import seamless from './grid/seamless' // 新闻无缝滚动
import pyramid from './grid/pyramid' // 金字塔动画
// import scrollArc from './grid/scrollArc' // 滚动弧形线
// import szBar from './grid/szBar' // 双轴柱状图
import ringPin from './grid/ringPin' // 环形气泡图
import rotateColorful from './grid/rotateColorful' // 旋转多彩图
import circleRunway from './grid/circleRunway' // 环形跑道图
import scanRadius from './grid/scanRadius' // 扫描半径图
import cakeLinkage from './grid/cakeLinkage' // 柱饼组合联动
import dynamicLine from './grid/dynamicLine' // 动态轮播折线图
import pyramidTrend from './grid/pyramidTrend' // 金字塔趋势
// import staffMix from './grid/staffMix' // 人员占比
import flashCloud from './grid/flashCloud' // 闪动云
import ringPie from './home/ringPie' // 文字数据展示
import colorfulRadar from './home/colorfulRadar' // 多彩雷达
import dynamicList from './home/dynamicList' // 动态列表动画
import bar3d from './home/bar3d' // 3D地图展示
import colorfulArea from './home/colorfulArea' // 多彩轮播面积
import rainbow from './home/rainbow' // 彩虹轨道图
import gauge from './home/gauge' // 仪表盘
import waterPolo from './home/waterPolo' // 水球图
import circleNesting from './home/circleNesting' // 圆环套圆环
import business from './companySummary/business' // 业务范围
import talent from './companySummary/talent' // 人才队伍
import income from './companySummary/income' // 营业收入
import wordCloud from './companySummary/wordCloud' // 产品热词
import distribution from './companySummary/distribution' // 客户分布
import history from './companySummary/history' // 发展历程
import bar3dcun from './cun/bar3dcun' // 3D地图展示
import gaugecun from './cun/gaugecun' // 柱状图
import circleRunwaycun from './cun/circleRunwaycun' // 蜘蛛网饼状图
import colorfulRadarcun from './cun/colorfulRadarcun' // 柱状图(多排量）
import waterPolocunone from './cun/waterPolocunone' // 蜘蛛网饼状图
import waterPolocuntwo from './cun/waterPolocuntwo' // 蜘蛛网饼状图
import waterPolocunthree from './cun/waterPolocunthree' // 蜘蛛网饼状图
import ringPiecun from './cun/ringPiecun' // 文字数据展示
const components = {
  bgAnimation,
  modal,
  // sinan,
  // seamless,
  pyramid,
  // scrollArc,
  // szBar,
  ringPin,
  rotateColorful,
  circleRunway,
  scanRadius,
  cakeLinkage,
  dynamicLine,
  pyramidTrend,
  // staffMix,
  flashCloud,
  ringPie,
  colorfulRadar,
  dynamicList,
  bar3d,
  colorfulArea,
  rainbow,
  gauge,
  waterPolo,
  circleNesting,
  business,
  talent,
  income,
  wordCloud,
  distribution,
  history,
  //村级集体经济组件展示
  bar3dcun,
  gaugecun,
  ringPiecun,
  circleRunwaycun,
  waterPolocunone,
  waterPolocuntwo,
  waterPolocunthree,
  colorfulRadarcun,
};
const install = (Vue = {}) => {
  if (install.installed) return;
  Object.keys(components).forEach(component => {
    Vue.component(components[component].name, components[component]);
  });
  install.installed = true;
};
install.installed = false;
if (typeof window !== "undefined" && window.Vue) {
  install(window.Vue);
  install.installed = true;
}
const Vcomp = {
  ...components,
  install
};
export default Vcomp
